import React from 'react';
import { Router,Redirect } from "@reach/router"

import Index from './views/index';
import Detail from './views/detail';

const App = () => {
    return (
        <Router>
           <Redirect noThrow from="/" to="/index" />
          <Index path="/index" />
          <Detail path="/detail"/>
        </Router>
    );
}

export default App;
